#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <sys/time.h>
#include <errno.h>
#include <semaphore.h>
#include "sys_operater.h"

int main(void) 
{ 
	sj_platform_initcall();	

	int fd = sj_open("/dev/ttyAMA1",0);
	printf("ttyAMA1 %d\n",fd );

	sj_write(fd,"hello",strlen("hello"));

	sj_close(fd);
	
	fd = sj_open("/dev/ttyAMA1",0);
	printf("ttyAMA1 %d\n",fd );
	return 0;   
} 
